package com.lky.marshall.mallcart.feign;

import com.lky.common.utils.R;
import com.lky.marshall.mallcart.vo.SkuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/6/1 20:21
 */
@FeignClient("mall-product")
public interface ProductFeignService {


    @GetMapping("/product/skuinfo/info/{skuId}")
    public R<SkuInfoVo> info(@PathVariable("skuId") Long skuId);

    @RequestMapping(method = RequestMethod.GET,value = "/product/skusaleattrvalue/stringList/{skuId}")
    public List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/{skuId}/price")
    R getPrice(@PathVariable("skuId") Long skuId);
}
